package cn.tworice.admin.dao;

import cn.tworice.common.entity.Companies;
import cn.tworice.common.entity.CompaniesType;
import cn.tworice.common.entity.dto.CompaniesDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 企业信息持久层
 * @Author 二饭
 * @Email 1786705138@qq.com
 * @Date 2021/12/9 19:02
 */
@Repository
public interface CompaniesDao {
    List<CompaniesDto> queryCompanies(int i, Integer pageSize,Integer type);

    void insertCompanies(Companies companies);

    void updateCompanies(Companies companies);

    void delCompanies(String id);

    Integer queryCompaniesTotal(Integer type);

    List<CompaniesType> queryCompaniesType();

    CompaniesDto queryCompaniesById(String id);
}
